package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;
import org.example.domain.ResponseResult;
import org.example.domain.dto.ArticleListDto;
import org.example.domain.entity.Article;
import org.springframework.stereotype.Service;

import java.util.List;

public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult updateViewCount(Integer id);

//    boolean updateSqlViewCount(List<Article> articles);

    ResponseResult articleList(ArticleListDto articleListDto);

    ResponseResult getArticleDetail(Integer id);

    ResponseResult addArticle(Article article);

    ResponseResult getArticleList(ArticleListDto articleListDto);

    ResponseResult updateArticle(Article article);

    ResponseResult recommendArticles();

    ResponseResult userArticles(ArticleListDto articleListDto);
}
